package sample.delegate.test01;

public class Proxy implements Network{
	private Network network;

	public Proxy(Network network){
		this.network = network;
	}

	public void check(){
		System.out.println("检查用户是否合法。");
	}

	public void browse(){
		this.check();
		this.network.browse();
	}
}